<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<div style="width: 300px;height: 300px">
  <img th:src="'/imag/'+${product.imgPath}">
</div>
<div>
  <span th:text="${product.name}"></span><br>
  单价：<span th:text="${product.price}"></span><br>
  评论：<span th:text="${product.proNum}">条</span>
</div><br>
<div th:each="comment : ${product.commentsList}">
  <span th:text="${comment.userBean.uniName}"></span>
  <span th:text="${comment.content}"></span>
</div><br>
<form action="/user/add">
  <input type="hidden" name="userId" th:value="${userId}">
  请输入评论：<input type="text" name="content">
  <input type="submit" name="评价">
</form>




</body>
</html>